<?php

namespace App\Tools;

use OSS\Core\OssException;
use OSS\Credentials\Credentials;
use OSS\Credentials\CredentialsProvider;

class EnvironmentVariableCredentialsProvider implements CredentialsProvider
{
    /**
     * @return Credentials
     * @throws OssException
     */
    public function getCredentials()
    {
        $ak= "LTAI5tBnj3TLvfnEE38aVBp8";
        $sk = "tl76A42HxIH3nslmOb8LjP48WJ9Xle";
        $token =  env('OSS_SESSION_TOKEN');
        return new Credentials($ak, $sk, $token);
    }

}
